-left_controller = @left.class.to_s.underscore.pluralize.to_sym
-left_class = @left.class.to_s.underscore
-right_action = @right_class.to_s.underscore.pluralize.to_sym
#wrap
  #left
    -if @show_slugfilter
      =render "base/slugfilter"
    %h3=pat(left_class)
    %ol
      -@lefts.each do |left_object|
        %li.ui-widget-content
          -if @left.id == left_object.id
            %b
              &~left_object.display_name
          -else
            %a{:href => url_for(:id => left_object.id)}
              &~left_object.display_name
  #right
    =form_for @left, :url => {:id => @left.id}, :method => :put, :html => {:class => :form} do |f|
      .group.navform.wat-cf
        =f.submit pat(:save), :class => :button
        =link_to :cancel, :id => @left.id

      %h3=pat(@right_class.to_s.underscore)
      =fields_for @left_nested do |nf|
        =nf.collection_select(@right_ids, @rights, :id, :display_name, {}, {:multiple => true})
        :javascript
          $('##{left_class}_#{@right_ids}').manyselect({ });
